Skip to main content
Version: 1.0.2

Approve Company Ticket by ID

The Approve Company Ticket by ID API grants approval to the added companies that are awaiting for approval. It is necessary to provide the Ticket IDs of the added companies that require approval.

Method: POST

{{URL}}/jsonrpc

Headers

NameValue
Content-Typeapplication/json

Example

Payload Parameters
ParameterDescription

id

Mandatory

String

Unique ID for each request

jsonrpc

Mandatory

String

JSON RPC VERSION - should be "2.0"

method

Mandatory

String

Method Name - should be "VisaService.ApproveTickets"

params

Mandatory

Object

ticketIds

(or)

companyIds

Mandatory

Array

Ticket Id or Company Id to be approved

"Ticket ID" is mandatory if "Company ID" is not provided

"Company ID" is mandatory if "Ticket ID" is not provided


curl --location --globoff '{{URL}}/jsonrpc' \
--header 'Content-Type: application/json' \
--data '{"id":"1","jsonrpc":"2.0","method":"VisaService.ApproveTickets","params":{"api":{"credential":"Basic ay5iYXN1dmFuQGJhbmtjYncub3JnOmUxYWY0Y2ExYzE1MDRiMTNiYzcxZjhlOTY0M2VjZTlj","signature":"{{signature}}"},"payload":{"ticketIds":["622067c0fa88be306e519b5d"]}"payload":{"companyIds":["65df3e61bc2422fb17c9755c"]}}}'

Body


{
"id": "1",
"jsonrpc": "2.0",
"method": "VisaService.ApproveTickets",
"params": {
"api": {
"credential": "Basic ay5iYXN1dmFuQGJhbmtjYncub3JnOmUxYWY0Y2ExYzE1MDRiMTNiYzcxZjhlOTY0M2VjZTlj",
"signature": "{{signature}}"
},
"payload": {
"ticketIds": [
"622067c0fa88be306e519b5d"
]
}

//or

"payload": {
"companyIds": [
"65df3e61bc2422fb17c9755c"
]
}
}
}

Response: 201

Response Parameters
ParameterDescription

jsonrpc

String

JSON RPC VERSION - should be "2.0"

result

Object

message

String

Approval confirmation message

id

String

Company Ticket number


{
"jsonrpc": "2.0",
"result": {
"message": "Approved successfully"
},
"id": "1"
}